// 静态路由配置
// 书写格式与动态路由格式一致，全部经由框架统一转换
// 比较动态路由在meta中多加入了role角色权限，为数组类型。一个菜单是否有权限显示，取决于它以及后代菜单是否有权限。
// routes 显示在左侧菜单中的路由(显示顺序在动态路由之前)
// 示例如下

const routes = [
	{
		name: "dashboard",
		path: "/",
		meta: {
			icon: "el-icon-home-filled",
			title: "首页",
			role: ["SA","leader", "employee", "manufacturer"]
		},
		children: [{
			name: "dashboard",
			path: "/dashboard",
			component: "home/widgets/components/welcome",
			meta: {
				icon: "el-icon-user-filled",
				title: "工作职责",
				role: ["SA","leader", "employee", "manufacturer"]
			},
		},{
			name: "dataAnalysis",
			path: "/dataAnalysis",
			component: "home/dataAnalysis/index",
			meta: {
				icon: "el-icon-user-filled",
				title: "数据分析",
				role: ["SA","leader", "employee", "manufacturer"]
			},
		}]
	},
	{
		name: "project",
		path: "/project",
		component: "project/index",
		meta: {
			icon: "el-icon-list",
			title: "项目",
			role: ["SA","leader", "employee", "manufacturer"]
		},
		children: [
		// 	{
		// 	name: "demopageProject",
		// 	path: "/demopageProject",
		// 	component: "project/index",
		// 	meta: {
		// 		icon: "el-icon-list",
		// 		title: "项目中心",
		// 		role: ["SA","leader", "employee", "manufacturer"]
		// 	}
		// },
			{
			name: "keynote",
			path: "/keynote",
			props: {
				type: '1'
			},
			component: "task/index",
			meta: {
				icon: "el-icon-star-filled",
				title: "重点工作",
				role: ["SA","leader", "employee", "manufacturer"]
			}
		},
			{
				name: "regular",
				path: "/regular",
				component: "task/index",
				meta: {
					icon: "el-icon-checked",
					title: "常规工作",
					role: ["SA","leader", "employee", "manufacturer"]
				}
			},/*{
				name: "userTaskList",
				path: "/userTaskList",
				component: "task/userTaskList",
				meta: {
					icon: "el-icon-checked",
					title: "常规工作",
					role: ["SA","leader","employee"]
				}
			},*/

			// 	{
		// 	name: "demopageTodo",
		// 	path: "/demopageTodo",
		// 	component: "task/todoTask",
		// 	meta: {
		// 		icon: "el-icon-list",
		// 		title: "看板待办",
		// 		role: ["SA","leader", "employee"]
		// 	}
		// }
		]
	},
	{
		name: "org",
		path: "/org",
		meta: {
			icon: "sc-icon-organization",
			title: "组织",
			role: ["SA"]
		},
		children: [{
			name: "company",
			path: "/company",
			component: "company/index",
			meta: {
				icon: "sc-icon-organization",
				title: "公司管理",
				role: ["SA"]
			}
		},{
			name: "org",
			path: "/org",
			component: "org/index",
			meta: {
				icon: "sc-icon-organization",
				title: "部门管理",
				role: ["SA"]
			}
		}]
	},{
		name: "role",
		path: "/role",
		meta: {
			icon: "el-icon-setting",
			title: "权限",
			role: ["SA","leader"]
		},
		children: [{
			name: "roleProject",
			path: "/roleProject",
			component: "role/index",
			meta: {
				icon: "el-icon-lock",
				title: "角色管理",
				role: ["SA"]
			}
		},{
			name: "uum",
			path: "/uum",
			component: "uum/index",
			meta: {
				icon: "el-icon-user",
				title: "用户管理",
				role: ["SA"]
			}
		},{
			name: "menu",
			path: "/menu",
			component: "menu/index",
			meta: {
				icon: "el-icon-menu",
				title: "菜单管理",
				role: ["SA"]
			}
		},{
			name: "team",
			path: "/team",
			component: "uum/index",
			meta: {
				icon: "el-icon-help",
				title: "团队成员",
				role: ["SA", "leader"]
			}
		}]
	}
]

// const routes = []

export default routes;
